package com.hdax.dm.rest.service;

import com.hdax.dm.api.item.ItemControllerAPI;
import com.hdax.dm.entity.item.DmItem;
import com.hdax.dm.service.DmItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RestItemService implements ItemControllerAPI {

    @Autowired
    private DmItemService itemService;
    @Override
    public DmItem itemDetail(Long itemId) {
        return itemService.getById(itemId);
    }
}
